%% 
programme printf("Debut programme ");
ecrire  printf("instruction ecrire ");
var	printf("declaration de variable ");
procedure printf("procedure ");
fonction printf("fonction ");
entier printf("type entier ");
tableau printf("tableau ");
si printf("instruction if ");
alors printf("instruction alors ");
sinon printf("instruction else ");
"tant que" printf("boucle ");
faire printf("instruction faire ");
lire printf("instruction lire ");
fin printf("fin d'instruction prec ");
[a-zA-Z][a-zA-Z0-9]*	printf("identificateur ");
"+"|"ou" printf("opadd ");
/*[0-9]+"+"[0-9]+ printf("NB opadd NB ");*/
/*-[0-9]+"+"[0-9]+ printf("opneg NB opadd NB ");*/
[+]?[0-9]+	printf("NB ");
[+]?[0-9]*[a-zA-Z][a-zA-Z0-9]* printf("ERREUR ");
":=" printf("affectation ");
"="|">"|"<"|">="|"<="|"<>" printf("oprel ");
"*"|"et" printf("oppmult ");
[ \n\t]* printf("blancs ");
"%".*\n printf("Commentaire ");
"-"|"non" printf("negation ");
"-"" "*[0-9]* printf("opneg NB ");
","|";"|":" printf("separateur ");

%%
int yywrap(void) {
	return 1;
}
int main(void) {
	yylex();
	return 0;
}
